package com.woniu.microcommunityserver.tribal.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 
 * 评论表
 * @author lhy
 * @email 1045238869@qq.com
 * @date 2021-01-22 11:10:59
 */
@Data
@TableName("poster_comment_info")
public class PosterCommentInfoEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 评论id
	 */
	@TableId
	private Long id;
	/**
	 * 评论信息
	 */
	private String commentInformation;
	/**
	 * 帖子ID
	 */
	private Long fkPosterId;
	/**
	 * 状态 0-启用 1-禁用
	 */
	private Integer commentState;
	/**
	 * 用户id
	 */
	private Long fkUserId;
	/**
	 * 评论时间
	 */
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private Date commentTime;
	/**
	 * 回复ID[默认为0,表示普通评论,回复评论时：replyId值是被评论数据的ID]
	 */
	private Long replyId;
	@TableField(exist = false)
	private List<PosterCommentInfoEntity> posterCommentInfoEntity;
}
